<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <base href="http://127.0.0.1:4000/" />
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>目录配置</title>
  <meta name="keywords" content="目录配置" />
  <meta name="description" content="目录配置" />
  <link rel="stylesheet" href="static/pages/article_details/index.css?v=1.0.0.2022.08.13 10:12:50">
</head>

<body class="daytime-theme">

  <div class="components_header-wrap">
  <div id="components_header-fix">
    <div class="header clearfix">
      <a class="logo fl" href="/">EOWAY.CN</a>

      <div class="menu-toggle-button fr">导航</div>
      <div class="menu-wrap fr">
        <a class="menu-item" href="/">首页</a>
        <a class="menu-item" href="/about.html">关于</a>
        <div class="menu-item switch-theme-wrap">
          <span>切换主题</span>
          <div id="theme-list">
            <div class="theme-list-item" theme="daytime-theme" >日间</div>
            <div class="theme-list-item" theme="night-theme">夜间</div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>

  <div class="page-container">
    
<div class="layout-container clearfix">
  <div class="main-wrap">
    <div class="head-wrap">
      <h1 class="title">目录配置</h1>
      <p class="date">2021-08-17 17:46:27</p>
    </div>
    <div class="markdown-body"><blockquote>
<p>目录内容即<code>markdown/src</code>下所有文件夹的目录层级关系，最终会显示在博客首页。</p>
</blockquote>
<blockquote>
<p>目录配置只支持修改目录排序</p>
</blockquote>
<h1 id="item-1">生成博客目录配置 js 文件</h1>
<pre><code class="language-bash">npm run config
</code></pre>
<p>运行后生成<code>markdown/config/directoryConfig.js</code>，如果生成失败，先删除<code>markdown/config/directoryConfig.js</code>再运行。</p>
<p>编辑<code>markdown/config/directoryConfig.js</code>，自定义目录的信息。</p>
<table>
<thead>
<tr>
<th>属性</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>top</td>
<td>排序，数字类型，数值越大，排序越靠前。</td>
</tr>
</tbody>
</table>
</div>
  </div>

  <div class="sliber-wrap">
    
<div class="toc-wrap">
  <div class="title">文章目录</div>
  
  <a class="toc-item line-clamp-multi-1 " anchor="item-1" href="1629193587645.html#item-1">生成博客目录配置 js 文件</a>
  
</div>



  </div>
</div>

  </div>

  <script src="static/pages/article_details/index.js?v=1.0.0.2022.08.13 10:12:50"></script>

  <script src="static/components/socket/index.js"></script>

</body>

</html>